package com.shigen.demo.controller;

import com.shigen.demo.service.impl.TestServiceImpl;
import javax.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * 测试使用
 *
 * @author shigenfu
 * @date 2022/6/23 4:03 下午
 */
@RestController
@Slf4j
public class TestController {

  @Resource
  private TestServiceImpl testService;

  @GetMapping(value = "test01")
  public void test01(@RequestParam("ids") String[] ids) {
    log.info("{}", ids);


  }

  @GetMapping(value = "download")
  public String download() {
    log.info("开始下载-------");
    testService.downloadFile();
    log.info("下载完成-------");
    return "download";
  }


}
